package com.example.bms.service;
import com.example.bms.entity.Admin;
import com.example.bms.entity.Student;
import com.example.bms.entity.Teacher;


/**
 * @apiNote 用于对判断题的增加和查询
 * @author
 * @email 1605009600@qq.com
 * @since 1.0.0
 */
public interface LoginService {


    /**
     * @apiNote 验证管理员账号密码是否正确
     * @author
     * @param username 账号
     * @param password 密码
     * @email 2918185121@qq.com
     * @return Admin
     * @since 1.0.0
     */
    public Admin adminLogin(Integer username, String password);


    /**
     * @apiNote 验证账号密码是否正确
     * @author
     * @param username 账号
     * @param password 密码
     * @email 2918185121@qq.com
     * @return Teacher
     * @since 1.0.0
     */
    public Teacher teacherLogin(Integer username, String password);


    /**
     * @apiNote 验证账号密码是否正确
     * @author
     * @param username 账号
     * @param password 密码
     * @email 2918185121@qq.com
     * @return Student
     * @since 1.0.0
     */
    public Student studentLogin(Integer username, String password);
}
